﻿using Corina.Enumerations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Corina.Common
{
    public class UrlPrefix<T> where T : class
    {
        public UrlPrefix()
        {

        }

        public static IEnumerable<KeyValuePair<UriType, string>> Prefixs
        {
            get
            {
                yield return new KeyValuePair<UriType, string>(UriType.OutApp, "pack://siteoforigin:,,,/");
                yield return new KeyValuePair<UriType, string>(UriType.InApp, string.Format("pack://application:,,,/{0};component/", typeof(T).Namespace));
            }
        }
    }
}
